package com.foundationmade.newbiz.core.security.domain;

// Generated 2013. 10. 22 ���� 2:45:08 by Hibernate Tools 4.0.0

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

/**
 * SecurityIdentity generated by hbm2java
 */
@Entity
@Table(name = "security_identity", catalog = "newbiz")
@DynamicInsert
@DynamicUpdate
public class SecurityIdentity implements java.io.Serializable
{

	private long identityId;
	private String securityId;
	private String securityPassword;
	private String authorityKey;
	private String name;
	private boolean expired;
	private boolean locked;
	private boolean credentialExpired;
	private boolean enabled;
	private String email;
	private String phoneNumber;
	private String cellNumber;
	private Date generatedTimestamp;
	private long generatorId;
	private Date updatedTimestamp;
	private Long updatorId;

	public SecurityIdentity()
	{
	}

	public SecurityIdentity(long identityId, String securityId,
			String securityPassword, String authorityKey, String name,
			boolean expired, boolean locked, boolean credentialExpired,
			boolean enabled, Date generatedTimestamp, long generatorId)
	{
		this.identityId = identityId;
		this.securityId = securityId;
		this.securityPassword = securityPassword;
		this.authorityKey = authorityKey;
		this.name = name;
		this.expired = expired;
		this.locked = locked;
		this.credentialExpired = credentialExpired;
		this.enabled = enabled;
		this.generatedTimestamp = generatedTimestamp;
		this.generatorId = generatorId;
	}

	public SecurityIdentity(long identityId, String securityId,
			String securityPassword, String authorityKey, String name,
			boolean expired, boolean locked, boolean credentialExpired,
			boolean enabled, String email, String phoneNumber,
			String cellNumber, Date generatedTimestamp, long generatorId,
			Date updatedTimestamp, Long updatorId)
	{
		this.identityId = identityId;
		this.securityId = securityId;
		this.securityPassword = securityPassword;
		this.authorityKey = authorityKey;
		this.name = name;
		this.expired = expired;
		this.locked = locked;
		this.credentialExpired = credentialExpired;
		this.enabled = enabled;
		this.email = email;
		this.phoneNumber = phoneNumber;
		this.cellNumber = cellNumber;
		this.generatedTimestamp = generatedTimestamp;
		this.generatorId = generatorId;
		this.updatedTimestamp = updatedTimestamp;
		this.updatorId = updatorId;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "IdentityId", unique = true, nullable = false)
	public Long getIdentityId()
	{
		return this.identityId;
	}

	public void setIdentityId(long identityId)
	{
		this.identityId = identityId;
	}

	@Column(name = "SecurityId", nullable = false, length = 50)
	public String getSecurityId()
	{
		return this.securityId;
	}

	public void setSecurityId(String securityId)
	{
		this.securityId = securityId;
	}

	@Column(name = "SecurityPassword", nullable = false, length = 100)
	public String getSecurityPassword()
	{
		return this.securityPassword;
	}

	public void setSecurityPassword(String securityPassword)
	{
		this.securityPassword = securityPassword;
	}

	@Column(name = "AuthorityKey", nullable = false, length = 40)
	public String getAuthorityKey()
	{
		return this.authorityKey;
	}

	public void setAuthorityKey(String authorityKey)
	{
		this.authorityKey = authorityKey;
	}

	@Column(name = "Name", nullable = false, length = 20)
	public String getName()
	{
		return this.name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	@Column(name = "Expired", nullable = false)
	public boolean isExpired()
	{
		return this.expired;
	}

	public void setExpired(boolean expired)
	{
		this.expired = expired;
	}

	@Column(name = "Locked", nullable = false)
	public boolean isLocked()
	{
		return this.locked;
	}

	public void setLocked(boolean locked)
	{
		this.locked = locked;
	}

	@Column(name = "CredentialExpired", nullable = false)
	public boolean isCredentialExpired()
	{
		return this.credentialExpired;
	}

	public void setCredentialExpired(boolean credentialExpired)
	{
		this.credentialExpired = credentialExpired;
	}

	@Column(name = "Enabled", nullable = false)
	public boolean isEnabled()
	{
		return this.enabled;
	}

	public void setEnabled(boolean enabled)
	{
		this.enabled = enabled;
	}

	@Column(name = "Email", length = 50)
	public String getEmail()
	{
		return this.email;
	}

	public void setEmail(String email)
	{
		this.email = email;
	}

	@Column(name = "PhoneNumber", length = 20)
	public String getPhoneNumber()
	{
		return this.phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber)
	{
		this.phoneNumber = phoneNumber;
	}

	@Column(name = "CellNumber", length = 20)
	public String getCellNumber()
	{
		return this.cellNumber;
	}

	public void setCellNumber(String cellNumber)
	{
		this.cellNumber = cellNumber;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "GeneratedTimestamp", nullable = false, length = 19)
	public Date getGeneratedTimestamp()
	{
		return this.generatedTimestamp;
	}

	public void setGeneratedTimestamp(Date generatedTimestamp)
	{
		this.generatedTimestamp = generatedTimestamp;
	}

	@Column(name = "GeneratorId", nullable = false)
	public long getGeneratorId()
	{
		return this.generatorId;
	}

	public void setGeneratorId(long generatorId)
	{
		this.generatorId = generatorId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UpdatedTimestamp", length = 19)
	public Date getUpdatedTimestamp()
	{
		return this.updatedTimestamp;
	}

	public void setUpdatedTimestamp(Date updatedTimestamp)
	{
		this.updatedTimestamp = updatedTimestamp;
	}

	@Column(name = "UpdatorId")
	public Long getUpdatorId()
	{
		return this.updatorId;
	}

	public void setUpdatorId(Long updatorId)
	{
		this.updatorId = updatorId;
	}

}
